package com.lmm.lcbusiness.lcbusiness.server;

import com.lmm.lcbusiness.lcbusiness.BaseReturnInfo;
import com.lmm.lcbusiness.lcbusiness.commodel.GoodsCategoryModel;
import com.lmm.lcbusiness.lcbusiness.server.model.AttrModel;
import com.lmm.lcbusiness.lcbusiness.server.model.CategoryAttr_Relation_Model;
import com.lmm.lcbusiness.lcbusiness.server.model.ItemModel;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * Created by xmgong on 2017/12/1.
 */

public interface UpdateAction {

    //栏目同步接口
    @POST("/s/goodscategory/list")
    Observable<BaseReturnInfo<List<GoodsCategoryModel>>> getGoodsCategoryAction(@QueryMap Map<String, String> params);

    //获取所有商品类别和属性的关系
    @POST("/s/attribute/relation_list_all")
    Observable<BaseReturnInfo<List<CategoryAttr_Relation_Model>>> getAttributeTable(@QueryMap Map<String, String> params);

    //获取所有商品属性
    @POST("/s/attribute/list_all")
    Observable<BaseReturnInfo<List<AttrModel>>> getGoodsAttribute(@QueryMap Map<String, String> params);

    //获取所有枚举字典项
    @POST("/s/dic/item_list_all")
    Observable<BaseReturnInfo<List<ItemModel>>> getItemListAll(@QueryMap Map<String, String> params);
}
